package com.smm.web.vmc.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhenghao on 2016/8/26.
 * 用户对象
 */
@Entity
@Table(name="user")
public class User implements Serializable {

    private int id;

    private String realName;    //真实姓名

    private String account;     //登录账号

    private String password;    //登录密码

    private String phone;       //手机号码

    private Date registTime;    //注册时间

    private String clentid;     //app客户端唯一编码


    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }

    public String getClentid() {
        return clentid;
    }

    public void setClentid(String clentid) {
        this.clentid = clentid;
    }


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", realName='" + realName + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", registTime=" + registTime +
                ", clentid='" + clentid + '\'' +
                '}';
    }
}
